package com.mudouyu.dubbo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mudouyu.dubbo.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ${DESCRIPTION}
 *
 * @author yangcb
 * @email mudouyu@aliyun.com
 * @create 2018-02-08 15:30
 **/
@RestController
public class ArticleController {


    @Reference
    private ArticleService articleService;

    @RequestMapping(value = "hello")
    public String hello() {
        return articleService.sayHello();
    }


}
